package com.devops.admin.service;

import io.fabric8.kubernetes.client.dsl.LogWatch;

import java.io.InputStream;
import java.io.PipedOutputStream;

/**
 * @ClassName LogService
 * @Description TODO
 * @Author hepingguo
 * @Date 2022/4/27 16:29
 * @Version 1.0
 **/
public interface DOSLogsService {

    /**
     * @Author heyabo
     * @Description 获取日志
     * @Date 16:30 2022/4/27
     * @Param []
     * @return java.io.InputStream
     **/
    LogWatch getK8sClusterPodLog(int releaseId, String podName, int type);

    void closeK8sClusterPodLog(int releaseId, String podName, PipedOutputStream out,int type);
}
